package com.hb.B_面向对象.F_模式匹配

fun main() {
    println(logicPatteran(10))
}

fun logicPatteran(a:Int)=when{
    a in 2..10 ->("$a is smaller than 10 and bigger than 1")
    else -> "maybe a is bigger than 10 or smaller than 2"
}